﻿@model RonYee.Models.Customer

@{
    ViewBag.Title = "用户信息详细";
    Layout = "~/Views/Shared/_LayoutOfSecondPage.cshtml";
}


<div class="box_padding">
    <h3><i class="ui-icons"></i>用户详细</h3>
    <div class="box_top ui-icons"></div>
    <div class="box_bg"><div class="box_padding">
    <div class="border_line">
        <table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody>
        <tr>
          <th class="tdName">学号</th>
          <th class="tdName">用户名</th>
          <th class="tdName">一卡通号</th>
          <th class="tdName">学院</th>
          <th class="tdName">联系方式</th>
          <th class="tdName">邮箱</th>
          <th class="tdName">用户类型</th>
          <th class="tdName">用户状态</th>
          <th class="tdName">创建时间</th>
        </tr>
        <tr>
          <td class="tdData">@Model.CustomerNo</td>
          <td class="tdData">@Model.Login</td>
          <td class="tdData">@Model.CarNo</td>
          <td class="tdData">@Model.Colloge</td>
          <td class="tdData">@Model.Phone</td>
          <td class="tdData">@Model.Email</td>
          <td class="tdData">@Enum.GetName(typeof(RonYee.Models.Enum.UserType),Convert.ToInt32(Model.UserType))</td>
          <td class="tdData">@Enum.GetName(typeof(RonYee.Models.Enum.UserState), Convert.ToInt32(Model.status))</td>
          <td class="tdData">@Model.AddTime.ToShortDateString()</td>
        </tr>
        </tbody></table></div>
    </div></div>
    <div class="box_down ui-icons"></div>

    <h3><i class="ui-icons"></i>图书订单列表</h3>
    <div class="box_top ui-icons"></div>
    <div class="box_bg"><div class="box_padding">
    <div class="border_line">
        <table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody>
        <tr>
            <th class="tdName">
                选择
            </th>
            <th class="tdName">
                订单编号
            </th>
            <th class="tdName">
                递交者
            </th>
            <th class="tdName">
                学 号
            </th>
            <th class="tdName">
                订单状态
            </th>
            <th class="tdName">
                联系方式
            </th>
            <th class="tdName">
                订单价格
            </th>
            <th class="tdName">
                递交日期
            </th>
            <th class="tdName">
                订单详细
            </th>
        </tr>

        @foreach (var item in (IEnumerable<RonYee.Models.Order>)ViewData["OrderList"])
        {
        <tr>
            <td class="tdData">
                <input type="checkbox"  id="CheckId" value="@item.OrderId" />
            </td>
            <td class="tdData">
                @Html.DisplayFor(modelItem => item.OrderId)
            </td>
            <td class="tdData">
                @Html.DisplayFor(modelItem => item.Username)
            </td>
            <td class="tdData">
                @Html.DisplayFor(modelItem => item.UserNo)
            </td>
            <td class="tdData">
                @Enum.GetName(typeof(RonYee.Models.Enum.OrderState),Convert.ToInt32(item.Status))
            </td>
            <td class="tdData">
                @Html.DisplayFor(modelItem => item.Phone)
            </td>
            <td class="tdData">
                @Html.DisplayFor(modelItem => item.Total)
            </td>
            <td class="tdData">
                @Html.DisplayFor(modelItem => item.OrderDate)
            </td>
            <td class="tdData">
                <a href="@Url.Action("Details", "Order", new { id=item.OrderId})">详细</a>
            </td>
        </tr>
        }
        </tbody>
        </table> 
    </div>
    </div>
    </div>
    <div class="box_down ui-icons"></div>

</div>

<div class="line_top">

<br />
@ViewBag.Error
</div>


